function transformDate(time){
	let d = new Date(time);
	let year = d.getFullYear();
	let month = d.getMonth() + 1>10?d.getMonth() + 1:"0"+(d.getMonth() + 1);
	let day = d.getDate()>10?d.getDate():"0"+d.getDate();
	let hours = d.getHours()>10?d.getHours():"0"+d.getHours();
	let min = d.getMinutes()>10?d.getMinutes():"0"+d.getMinutes();
	//padStart是es6新增语法
	let s = (d.getSeconds()).toString().padStart(2,"0");
	
	return year + "-" + month + "-" + day + " " + hours + ":" + min + ":" + s;
}

export default {
	transformDate
}

// module.exports = {
// 	transformDate
// }